import Vue from "vue";
import App from "./App";
import uView from 'uview-ui'
import Msg from "@/components/Msg";
import vTable from "@/components/table.vue"
Vue.use(uView);

// 引入所有的api请求接口函数
// import request from "@/utils/request.js";
// Vue.prototype.$request = request;

import axios from '@/utils/ajax.js';
Vue.prototype.$axios = axios;

// 引入封装的提示框
import {showToast} from "@/utils/hint-msg.js";
Vue.prototype.$showToast = showToast;

Vue.config.productionTip = false;

App.mpType = "app";


// 注册全局组件
Vue.component("Msg", Msg);
Vue.component("vTable", vTable);


const app = new Vue({
  ...App,
});
app.$mount();
